package com.test.service;

import java.text.ParseException;

import org.springframework.data.domain.Page;

import com.test.model.Person;

public interface PersonService {

	void savePerson(Person person);

	void deletePerson(Person person);

	Person getOneByIdentityNumber(String identityNumber);

	Person getOneByIdentityNumberAndId(String identityNumber, String id);

	Person getPersonById(String id);

	Page<Person> getPersonListByConditions(String identityNumber, String personName, String sex, String birthTime,
			String department, int page, int size) throws ParseException;

}
